package com.example.wan1.view.coin;

import com.example.wan1.R;
import com.example.wan1.adapter.CoinListAdapter;
import com.example.wan1.di.ano.FragmentScope;
import com.example.wan1.model.CoinSignInBean;

import java.util.ArrayList;
import java.util.List;

import dagger.Binds;
import dagger.Module;
import dagger.Provides;

/***
 * @Author: zxd
 * @CreateDate: 2020/8/26 13:44
 * @Description: 我的积分
 */
@Module
public abstract class CoinModule {

    @Binds
    abstract CoinContract.View selfCoinView(CoinFragment coinFragment);

    @FragmentScope
    @Provides
    static CoinListAdapter provideAdapter(List<CoinSignInBean> mList) {
        return new CoinListAdapter(R.layout.coin_item, mList);
    }

    @FragmentScope
    @Provides
    static List<CoinSignInBean> provideList() {
        return new ArrayList<>();
    }
}
